/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tetris_invader.personagens;

import java.awt.Image;
import java.awt.Point;
import java.io.Serializable;
import tetris_invader.itens.Item;
import tetris_invader.itens.PieceFactory;
import tetris_invader.itens.PieceFactory.PieceType;
import tetris_invader.util.Fase;

/**
 * Invasor de nivel medio.<br>
 * Invasor que atira contra o personagem.
 */
public class Invasor_Medium extends Invasor implements Serializable {

    public Invasor_Medium(Fase f, Image[] imagens, int fps) {
        super(f, imagens, fps);

        passo = 8;
        this.point = new Point(500, 70);
        this.vida = 2;

    }

    /**
     * Funcao que ateia fogo contra o jogador
     */
    public Item atira() {
        return PieceFactory.fabricaPeca(f, PieceType.INVADER_BEAM);
    }
}
